package com.mc.common.designpattern.signleton;

public class Singleton1 {
    //饿汉式  如果一直不使用会造成对象自愿浪费
    private static final Singleton1 SINGLETON_1 = new Singleton1();

    private Singleton1() {
    }

    public static Singleton1 getInstance() {
        return SINGLETON_1;
    }
}
